package tmp;

// Generated 04-nov-2009 18:40:40 by Hibernate Tools 3.2.4.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ExpedientDocument generated by hbm2java
 */
@Entity
@Table(name = "expedient_document", catalog = "fmanzano_gem")
public class ExpedientDocument implements java.io.Serializable {

	private Integer expDocId;
	private EntryReg entryReg;
	private InternalUser internalUser;
	private Expedient expedient;
	private byte[] expDocContent;
	private Date expCreateDate;
	private String expDocDescription;
	private String expDocKeys;
	private String expDocMime;
	private String expDocRealName;
	private int expDocTamanyo;
	private String expDocTitle;
	private boolean expDocVisible;

	public ExpedientDocument() {
	}

	public ExpedientDocument(byte[] expDocContent, Date expCreateDate,
			String expDocMime, String expDocRealName, int expDocTamanyo,
			boolean expDocVisible) {
		this.expDocContent = expDocContent;
		this.expCreateDate = expCreateDate;
		this.expDocMime = expDocMime;
		this.expDocRealName = expDocRealName;
		this.expDocTamanyo = expDocTamanyo;
		this.expDocVisible = expDocVisible;
	}

	public ExpedientDocument(EntryReg entryReg, InternalUser internalUser,
			Expedient expedient, byte[] expDocContent, Date expCreateDate,
			String expDocDescription, String expDocKeys, String expDocMime,
			String expDocRealName, int expDocTamanyo, String expDocTitle,
			boolean expDocVisible) {
		this.entryReg = entryReg;
		this.internalUser = internalUser;
		this.expedient = expedient;
		this.expDocContent = expDocContent;
		this.expCreateDate = expCreateDate;
		this.expDocDescription = expDocDescription;
		this.expDocKeys = expDocKeys;
		this.expDocMime = expDocMime;
		this.expDocRealName = expDocRealName;
		this.expDocTamanyo = expDocTamanyo;
		this.expDocTitle = expDocTitle;
		this.expDocVisible = expDocVisible;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "EXP_DOC_ID", unique = true, nullable = false)
	public Integer getExpDocId() {
		return this.expDocId;
	}

	public void setExpDocId(Integer expDocId) {
		this.expDocId = expDocId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "REG_ID")
	public EntryReg getEntryReg() {
		return this.entryReg;
	}

	public void setEntryReg(EntryReg entryReg) {
		this.entryReg = entryReg;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USU_LOGIN")
	public InternalUser getInternalUser() {
		return this.internalUser;
	}

	public void setInternalUser(InternalUser internalUser) {
		this.internalUser = internalUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "EXP_ID")
	public Expedient getExpedient() {
		return this.expedient;
	}

	public void setExpedient(Expedient expedient) {
		this.expedient = expedient;
	}

	@Column(name = "EXP_DOC_CONTENT", nullable = false)
	public byte[] getExpDocContent() {
		return this.expDocContent;
	}

	public void setExpDocContent(byte[] expDocContent) {
		this.expDocContent = expDocContent;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "EXP_CREATE_DATE", nullable = false, length = 10)
	public Date getExpCreateDate() {
		return this.expCreateDate;
	}

	public void setExpCreateDate(Date expCreateDate) {
		this.expCreateDate = expCreateDate;
	}

	@Column(name = "EXP_DOC_DESCRIPTION", length = 254)
	public String getExpDocDescription() {
		return this.expDocDescription;
	}

	public void setExpDocDescription(String expDocDescription) {
		this.expDocDescription = expDocDescription;
	}

	@Column(name = "EXP_DOC_KEYS", length = 254)
	public String getExpDocKeys() {
		return this.expDocKeys;
	}

	public void setExpDocKeys(String expDocKeys) {
		this.expDocKeys = expDocKeys;
	}

	@Column(name = "EXP_DOC_MIME", nullable = false, length = 100)
	public String getExpDocMime() {
		return this.expDocMime;
	}

	public void setExpDocMime(String expDocMime) {
		this.expDocMime = expDocMime;
	}

	@Column(name = "EXP_DOC_REAL_NAME", nullable = false, length = 254)
	public String getExpDocRealName() {
		return this.expDocRealName;
	}

	public void setExpDocRealName(String expDocRealName) {
		this.expDocRealName = expDocRealName;
	}

	@Column(name = "EXP_DOC_TAMANYO", nullable = false)
	public int getExpDocTamanyo() {
		return this.expDocTamanyo;
	}

	public void setExpDocTamanyo(int expDocTamanyo) {
		this.expDocTamanyo = expDocTamanyo;
	}

	@Column(name = "EXP_DOC_TITLE", length = 150)
	public String getExpDocTitle() {
		return this.expDocTitle;
	}

	public void setExpDocTitle(String expDocTitle) {
		this.expDocTitle = expDocTitle;
	}

	@Column(name = "EXP_DOC_VISIBLE", nullable = false)
	public boolean isExpDocVisible() {
		return this.expDocVisible;
	}

	public void setExpDocVisible(boolean expDocVisible) {
		this.expDocVisible = expDocVisible;
	}

}
